package com.wbr.file.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wbr.file.mapper.CustomerMapper;
import com.wbr.file.pojo.Customer;
import com.wbr.file.pojo.CustomerExample;
import com.wbr.file.service.CustomerService;

@Service
public class CustomerServiceImpl implements CustomerService {

	@Autowired
	private CustomerMapper customerMapper;

	public List<Customer> getCustomerList() throws Exception {
		CustomerExample example = new CustomerExample();
		List<Customer> list = new ArrayList<Customer>();
		try {
			list = customerMapper.selectByExample(example);
		} catch (Exception e) {
			throw new Exception("查询出错");
		}
		return list;
	}

}
